]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
modalDialog: Don't pass timestamp to popModal()
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 16 Feb 2024 23:26:28 +0000 (00:26 +0100)
committerMarge Bot <marge-bot@gnome.org>
Sat, 17 Feb 2024 10:42:46 +0000 (10:42 +0000)
Just like in the pushModal() case, the parameter doesn't do
anything anymore.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3195>

js/ui/modalDialog.js

index 58e894fced87fd484ae27f732bd97fd51355968c..3593d2565a35082c076d3e786838b7ad6ed14b9c 100644 (file)
@@ -217,7 +217,7 @@ export const ModalDialog = GObject.registerClass({
     // Drop modal status without closing the dialog; this makes the
     // dialog insensitive as well, so it needs to be followed shortly
     // by either a close() or a pushModal()
-    popModal(timestamp) {
+    popModal() {
         if (!this._hasModal)
             return;
 
@@ -226,7 +226,7 @@ export const ModalDialog = GObject.registerClass({
             this._savedKeyFocus = focus;
         else
             this._savedKeyFocus = null;
-        Main.popModal(this._grab, timestamp);
+        Main.popModal(this._grab);
         this._grab = null;
         this._hasModal = false;
 
@@ -272,14 +272,14 @@ export const ModalDialog = GObject.registerClass({
     // e.g., if a user clicked "Log Out" then the dialog should go away
     // immediately, but the lightbox should remain until the logout is
     // complete.
-    _fadeOutDialog(timestamp) {
+    _fadeOutDialog() {
         if (this.state === State.CLOSED || this.state === State.CLOSING)
             return;
 
         if (this.state === State.FADED_OUT)
             return;
 
-        this.popModal(timestamp);
+        this.popModal();
         this.dialogLayout.ease({
             opacity: 0,
             duration: FADE_OUT_DIALOG_TIME,